package day2;

public class Student {
	private String name;
	private String sxe;
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSxe() {
		return sxe;
	}

	public void setSxe(String sxe) {
		this.sxe = sxe;
	}

	public void play() {
		System.out.println("i love league of language");
	}
	
	public static void main(String[] args) {
		//new 对象
	/*	Student s = new Student();
		s.name = "Arin";
		s.sex = "male";
		System.out.println(s.toString());
*/	
		
		 new Student().play();//匿名对象
	}

	@Override
	public String toString() {
		return "Student [getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString()
				+ "]";
	}

}
